import UserInfoForm from "../../utils/UserInfoForm";
import TitleNav from "../../utils/TitleNav";
import {userController} from "../../utils/http/UserController";

const PersonInfo = () => {

    const user = userController.getUserInfo();
    // console.log(userController.getUserInfo())
    return(

        <>
            <TitleNav title={"个人信息"} backTo={"/me"}/>
            {/*{*/}
            {/*    user?<UserInfoForm {...user} />:<UserInfoForm />*/}
            {/*}*/}
            <UserInfoForm email={user?.email} password={user?.password}
                          account={user?.account} avatar={user?.avatar}
                          nickname={user?.nickname} phone={user?.phone} />
        </>

    );
}

export default PersonInfo;
